package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-05-26
 * Time: 14:41
 */
public class Test {
    public static void fuc(Shape shape) {
        shape.draw();
    }
    public static void main(String[] args) {
        //Shape shape = new Shape();
        Shape shape1 = new Rect();
        Shape shape2 = new Cycle();
        fuc(shape1);
        fuc(shape2);
        Rect rect = new Rect();
        Cycle cycle = new Cycle();
        rect.draw();
        cycle.draw();
        new Rect().draw();
        new Cycle().draw();
        fuc(new Rect());
        fuc(new Cycle());

    }
}
